package com.cn.web.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ActiveCodeServlet extends BaseServlet {


	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String activecode = request.getParameter("activecode");
		if(activecode==null ||"".equals(activecode.trim())){
			throw new RuntimeException("请使用有效的激活码激活");
		}
		us.toActiveCode(activecode);
		response.sendRedirect(request.getContextPath()+"/login.jsp");
	}

	

}
